<!DOCTYPE html>
<html><head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title>企业微信管理系统</title><script type="text/javascript">var doxcx_jspath = "/@system/";</script><script type="text/javascript" src="/@system/js/jquery.js"></script><script type="text/javascript" src="/@system/js/doxcxadapter.js"></script>
	<link rel="stylesheet" href="<?php echo $CSS; ?>ht/reset.css" type="text/css" media="screen"/>
	<link rel="stylesheet" href="<?php echo $CSS; ?>ht/index.css" type="text/css" media="screen"/>
	<link rel="stylesheet" href="<?php echo $CSS; ?>ht/invalid.css" type="text/css" media="screen"/>
	<link rel="stylesheet" href="<?php echo $CSS; ?>admin/bootstrap.min.css">
	<link rel="stylesheet" href="<?php echo $CSS; ?>ht/iconfont.css" type="text/css">
	<link rel="shortcut icon" href="<?php if ($_SERVER['IS_OEM']){ ?>/favicon.ico<?php }else{ ?>/favicon.ico<?php } ?>" />
	<style type="text/css">
		.szda{
			font-size: 18px;
			font-weight: bolder;
			color: red;
		}
		.myicon{
			background-size: 100% 100%;width:16px;height:16px;margin-right:5px;display:inline-block;vertical-align:middle;
		}
		.body_header {
			height: 70px;
			background: #2e3e4e;
		}
		#profile-links {
			background: none;
		}
		.sidebar-wrapper{
			margin:0px;
		}
		.active{
			background: red;
		}
		#sidebar #sidebar-wrapper {
			margin: 0px;
		}
		#sidebar #main-nav {
			width: 200px;
			padding: 0;
			margin: 0px;
		}
		#main-nav a{
			color:#FFF;
		}
		#sidebar #main-nav li {

			padding-bottom: 0px;

		}
		.one_li{
			background: rgba(0,0,0,0.2);
			list-style: none;
			line-height: 40px;
			padding: 0px;
			/*border-bottom: 1px solid #2e3e4e ;*/
		}
		.two_li{
			width: 100%;
			background: rgba(0,0,0,0.1);
			list-style: none;
			line-height: 40px;
			padding: 0px;
		}
		.two_li a{
			color:#FFF;
			width: 100%;
			text-decoration: none;
			line-height: 40px;
			margin-left: 30px;
		}
		.sidebar-wrapper_H{
			overflow: hidden;
			margin-bottom: 200px !important;
		}
	</style>
	<script type="text/javascript">
        $(function(){
            $('#main-nav').children('li').children('a').hover(function(){
                $(this).stop().animate({ paddingRight:'25px'},500);
            },function(){
                $(this).stop().animate({ paddingRight:'15px'},100);
            }).click(function(){
                var ul = $(this).parent().children('ul');
                console.log($(this).parent('li'));
                if(ul.size()==1){
                    if(ul.is(':hidden')){
                        $('#main-nav').children('li').children('ul').hide(300);
                        ul.stop().show(300);
                    }else{
                        ul.stop().hide(300);
                    }
                }
            });
            $('#leftFrame').height($(window).height()-80);
            $('#sidebar').height($(window).height());
            $(window).resize(function(){
                $('#leftFrame').height($(window).height()-80);
                $('#sidebar').height($(window).height());
            });
            // $('a[target="leftFrame"]').click(function(){
            // $('a[target="leftFrame"]').removeClass('szda');
            // $(this).css('color','yellow');
            // });

            $('#main-nav').children('li').each(function(){
                if($(this).find('li').size()<1){
                    $(this).hide();
                }
            });
        });

        function fresh_sys(){
            leftFrame.location.reload();
        }
	</script>

</head>
<body style="overflow: hidden;">
<div class="body_header">
	<div class="header_left" style="width:200px;background: #2b6fae;height: 70px;">
		<h1 class="header_logo" style="color:#FFF;text-align: center;width:200px;font-size: 18px;margin:0px;line-height: 68px">企业微信管理系统</h1>
	</div>
	<div class="header_left">

	</div>
	<ul class="shortcut-buttons-set" style="font-size: 16px;">
		<li style="width: 80px;">
			<a class="shortcut-button" href="logout.html" rel="modal" style="width: 60px;">
				<img src="/res/s2.png" alt="退出" title="退出" style="width: 24px;height: 100%;line-height:30px;padding-top:5px;float: left"><span style="line-height:30px;display:block;float: right;color:#FFF">退出</span>
			</a>
		</li>
	</ul>
	{if $mu->isadmin == 1}
	<div id="profile-links" style="font-size: 16px;">
		<i class="myicon" style="width:24px;height:24px;background-image:url(/res/s5.png);"></i>
		<a href="javascript:void(0);" onclick="cleanCache()"  style="text-decoration:none;">清理系统缓存</a>
	</div>
	{/if}
  	{if $mu->isadmin == 1}
	<div id="profile-links" style="font-size: 16px;">
		<i class="myicon" style="width:24px;height:24px;background-image:url(/res/s5.png);"></i>
		<a href="https://www.kt8.cn/store8" target="_blank"  style="text-decoration:none;">应用市场</a>
	</div>
	{/if}
	<div id="profile-links" style="font-size: 16px;">
		<i class="myicon" style="width:24px;height:24px;background-image:url(/res/s1.png);"></i>
		<a href="/weidogsadmin/system/updatePwd.html" target="leftFrame" style="text-decoration:none;"><?php echo $mu->un; ?></a>
	</div>

	<div id="profile-links" style="font-size: 16px;">
		 <i class="myicon" style="width:24px;height:24px;background-image:url(<?php echo $CSS; ?>ht/images/system.png);"></i>
		<a href="http://{$mu->domain}" target="_blank" style="text-decoration:none;">官网首页</a>
	</div>
</div>
<div id="body-wrapper">
	<div id="sidebar" style="width:200px; overflow-y: scroll; overflow-x: hidden;">
		<div id="sidebar-wrapper" class="sidebar-wrapper_H">
			<ul style="width: 100%;padding:0px;margin: 0px">
				<li class="one_li" style="background:#2e3e4e;font-size:16px;padding-left:60px;"><a href="" style="text-decoration: none;color: #FFF">系统首页</a></li>
			</ul>
			<ul id="main-nav">
				<?php $i=0; foreach ((array)$menu_arr as $k=>$m) { $i++; ?>
				<li class="one_li">
					<a target="leftFrame" class="nav-top-item">
						<?php if ($k==0){ ?>
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>ht/images/system.png);"></i>
						<?php }elseif ($k==1){ ?>
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>ht/images/group.png);"></i>
						<?php }elseif ($k==3){ ?>
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>ht/images/user.png);"></i>
						<?php }elseif ($k==4){ ?>
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>ht/images/staff.png);"></i>
						<?php }elseif ($k==5){ ?>
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>ht/images/agent.png);"></i>
						<?php }elseif ($k==6){ ?>
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>ht/images/record.png);"></i>
						<?php }elseif ($k==8){ ?>
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>ht/images/caiwu.png);"></i>
						<?php }elseif ($k==9){ ?>
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>ht/images/system.png);"></i>
						<?php }elseif($k==10){ ?>
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>ht/images/system.png);"></i>
						<?php }elseif($k==11){ ?>
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>ht/images/cart.png);"></i>
						<?php }elseif($k==12){ ?>
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>ht/images/system.png);"></i>
						<?php }elseif($k==13){ ?>
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>ht/images/system.png);"></i>
						<?php }elseif($k==14){ ?>
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>ht/images/system.png);"></i>
                        <?php }elseif($k==16){ ?>
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>ht/images/system.png);"></i>
						<?php }?>


						<?php echo $m['name']; ?>
					</a>
					<ul style="display: none;width:100%">
						<?php $__i=0; foreach ((array)$m['sub'] as $kk=>$mm) { $__i++; ?>

						<?php if (check_page($m['path'],$mm['file'])){ ?>
						<li class="two_li">
							<a href="/weidogsadmin/<?php echo $m['path']; ?>/<?php echo $mm['file']; ?>.html" target="leftFrame">
								<?php echo $mm['name']; ?></a>
						</li>
						<?php } ?>

						<?php } ?>
					</ul>
				</li>
				<?php } ?>
				
				<?php $i=0; foreach ((array)$plug_arr as $k=>$m) { $i++; ?>
				<li class="one_li">
					<a target="leftFrame" class="nav-top-item">
						<i class="myicon" style="background-image:url(<?php echo $CSS; ?>{$m['imgurl']});"></i>
						<?php echo $m['name']; ?>
					</a>
					<ul style="display: none;width:100%">
						<?php $__i=0; foreach ((array)$m['sub'] as $kk=>$mm) { $__i++; ?>

						<?php if (check_page($m['path'],$mm['file'])){ ?>
						<li class="two_li">
							<a href="/<?php echo $mm['file']; ?>.html" target="leftFrame">
								<?php echo $mm['name']; ?></a>
						</li>
						<?php } ?>

						<?php } ?>
					</ul>
				</li>
				<?php } ?>
				
			</ul>
		</div>
	</div>
	<div style="margin: 0 0 0 200px;">
		<iframe name="leftFrame" id="leftFrame" frameborder="0" src="default.html" style="width: 100%; z-index: 5;border:none;"></iframe>
	</div>

</div>

</body>
<script>
function cleanCache(){
		ajax('cleanCache.html',{},function(data){
				if(data == 'ok'){
					tusi('清理成功');
				}else{
					tusi('清理失败');
				}
			});	
	}
</script>
</html>